
package com.epam.android.training.level1.util;

/**
 * @author Anton Novikau
 */
public final class StringUtils {

  /**
   * Creates an instance of StringUtils.
   */
  private StringUtils() {}

  public static boolean isEmpty(String... strings) {
    boolean isEmpty = false;
    if (strings == null) {
      isEmpty = true;
    } else {
      for (String string : strings) {
        if (string == null || string.length() == 0) {
          isEmpty = true;
          break;
        }
      }
    }

    return isEmpty;
  }

  public static boolean isNotEmpty(String... strings) {
    return !isEmpty(strings);
  }
}
